home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / RRectShp.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  77 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                RRectShp.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef RRECTSHP_H
  13. #define RRECTSHP_H
  14.  
  15. #ifndef CONSTANT_H
  16. #include "Constant.h"
  17. #endif
  18.  
  19. #ifndef BASESHP_H
  20. #include "BaseShp.h"
  21. #endif
  22.  
  23. #ifndef BOUNDSHP_H
  24. #include "BoundShp.h"
  25. #endif
  26.  
  27. // ----- OS Layer -----
  28.  
  29. #ifndef FWPOINT_H
  30. #include "FWPoint.h"
  31. #endif
  32.  
  33. // ----- Foundation Layer -----
  34.  
  35. #ifndef FWRUNTYP_H
  36. #include "FWRunTyp.h"
  37. #endif
  38.  
  39.  
  40. //========================================================================================
  41. // class CRoundRectShape
  42. //========================================================================================
  43.  
  44. class CRoundRectShape : public CBoundedShape
  45. {
  46. public:
  47.     FW_DECLARE_CLASS
  48.     FW_DECLARE_AUTO(CRoundRectShape)
  49.  
  50. public:
  51.     CRoundRectShape(CDrawPart* drawPart);
  52.     CRoundRectShape(CDrawPart* drawPart, FW_CReadableStream& archive);
  53.     virtual ~CRoundRectShape();
  54.         
  55.     // ----- Shape -----
  56.     virtual ODShape*    CalcClipShape(Environment* ev);
  57.     virtual ODShape*    CreateShapeOutline(Environment *ev);
  58.  
  59.     virtual FW_Boolean    HitTest(Environment *ev, FW_CGraphicContext& gc, const FW_CMouseEvent& theMouseEvent) const;
  60.     virtual void        RenderShape(Environment* ev, ODFacet* facet, FW_CGraphicContext& gc);
  61.  
  62.     // ----- Archiving -----
  63.     static void*         Read(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  64.     virtual void        Flatten(FW_CWritableStream& archive);
  65.     
  66.     // ----- Scripting -----
  67.     virtual ODDescType    GetObjectClass() const;
  68.  
  69. private:
  70.     virtual void        OutlineShape(FW_CGraphicContext& gc, const FW_CInk& ink, const FW_CStyle& style, const FW_CRect& rect);
  71.  
  72. private:
  73.     FW_CPoint            fOvalSize;
  74. };
  75.  
  76. #endif
  77.